]> dgit.raspbian.org Git - gnome-shell.git/commit
unlockDialog: Do not reset the auth prompt on every tap
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 25 Aug 2025 23:11:18 +0000 (01:11 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 27 Aug 2025 12:44:06 +0000 (12:44 +0000)
commit962d1bf12f55bfadfc41eddd6eefb7597b9edde3
treead81fc631407895fd603c089ecbd68a6d7fc4f7f
parent2b2456e87d02b36fa85cdf434011f44143688215
unlockDialog: Do not reset the auth prompt on every tap

Currently we have a tap event tracker that causes that every time a tap
happens in the lock screen, we reset the auth prompt and this can be
particularly annoying at least in three cases:
 1. Just clicking everywhere in the screen may lead the unlock entry
    content to be cleared
 2. Clicking in the screen while an authentication is in progress,
    cancels it
 3. This may break a multi-factor authentication method, as a single
    click may lead previous steps to be cancelled

So, while resetting the auth prompt is important when we're about to
show it, it's not something we want to do while an authentication has
started.

As per this also do not touch the auth prompt sensitivity unless we're
in an idle phase, or we may end up overriding the auth prompt state,
leading for example to a text entry being editable while we're verifying
the secret

Fixes: 37e55df29865dac13656116efdd7abec8056dea9
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3852>
js/ui/unlockDialog.js